Motion.SimulateAxisAbsolute 方法

计算完成绝对运动所需的时间。

命名空间IntervalZero.KINGSTAR.Local.Api

组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

语法

C#VB
public KsReturn<McMoveDuration> SimulateAxisAbsolute(
       int Index,
       double Position,
       double Velocity,
       double Acceleration,
       double Deceleration,
       double Jerk,
       McDirection Direction
)
Public Function SimulateAxisAbsolute(
       Index As Integer,
       Position As Double,
       Velocity As Double,
       Acceleration As Double,
       Deceleration As Double,
       Jerk As Double,
       Direction As McDirection
) As KsReturn(Of McMoveDuration)

参数

Index

型别:int

轴索引。索引以 0 为起始;别名将影响此参数。

 

Position

型别:double

运动的目标位置。[单位](正或负值)

 

Velocity

型别:double

最大速度值,若目标位置很接近,不一定会达到最大速度。[单位/秒]

 

Acceleration

型别:double

加速度值,永远为正值,单位由 McProfileType 决定(增加马达电量)。[单位/秒2] 或 [秒]

 

Deceleration

型别:double

减速度值。永远为正值,单位由 McProfileType 决定(减少马达电量)。[单位/秒2] 或 [秒]

 

Jerk

型别:double

加加速度值,永远为正值,单位由 McProfileType 决定。[单位/秒3] 或 [秒]

 

Direction

型别:McDirection

轴的移动方向。

回传值

型别:KsReturn<McMoveDuration>

回传一个 KsError 代码及一个 McMoveDuration 值。

备注

模数轴启用时,模数值会套用至 Position 参数,轴将依据所设的 Direction 进行模拟移动。
例如,若模数值为 360,当 Direction 设定为:

范例

C#
N/A

参见

Motion 类别

IntervalZero.KINGSTAR.Local.Api 命名空间